package com.wuzhiming.istudy.mapper;

import com.wuzhiming.istudy.pojo.Course;
import com.wuzhiming.istudy.pojo.CourseStage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName: CourseStageMapper
 * @Description: 课程阶段mapper
 * @Author:zhimingw
 * @Version 1.0
 * @since 2022/3/5 13:05
 */
@Mapper
public interface CourseStageMapper {
    
    /**
    * @Description: 查询某个课程类型下的全部阶段
    * @Param: []
    * @return: java.util.List<com.wuzhiming.istudy.pojo.CourseStage>
    * @Author: zhimingw
    * @Date: 2022/3/5
    */
    List<CourseStage> queryAllById(Integer courseTypeId);


    /**
     * @Description: 获取课程阶段的数量
     * @Param: []
     * @return: java.lang.Integer
     * @Author: zhimingw
     * @Date: 2021/7/5
     */
    Integer getCount(Integer status);

    /**
    * @Description: 获取所有课程阶段
    * @Param: []
    * @return: java.util.List<com.wuzhiming.istudy.pojo.CourseStage>
    * @Author: zhimingw
    * @Date: 2022/3/31
    */
    List<CourseStage> queryAll();

    /**
     * @Description: 添加courseStage
     * @Param: [tag]
     * @return: int
     * @Author: zhimingw
     * @Date: 2021/5/31
     */
    int insert(CourseStage courseStage);

    /**
    * @Description: 查询单条数据
    * @Param: [id]
    * @return: com.wuzhiming.istudy.pojo.CourseStage
    * @Author: zhimingw
    * @Date: 2022/3/31
    */
    CourseStage queryById(Integer id);

    /**
     * @Description: 修改courseStage,根据 courseStage 的主键修改数据
     * @Param: [tag]
     * @return: int
     * @Author: zhimingw
     * @Date: 2021/5/31
     */
    int update(CourseStage courseStage);

    /**
     * @Description: 删除Tag
     * @Param: [id]
     * @return: int
     * @Author: zhimingw
     * @Date: 2021/5/31
     */
    int deleteById(Integer id);
}
